package utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertiesUtils {

	public static Properties getPropertiesFromFile(String filename){		
		try {
			File file = new File(filename);			
			FileInputStream fis = new FileInputStream(file);

			Properties properties = new Properties();
			properties.load(fis);

			return properties;
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}
